Skip to content

Conversation

@avivkeller
Copy link
Member

Just a quick test improvement, for more accurate tests.

Copilot AI review requested due to automatic review settings August 3, 2025 15:08
@avivkeller avivkeller requested a review from a team as a code owner August 3, 2025 15:08
@vercel
Copy link

vercel bot commented Aug 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
api-docs-tooling ✅ Ready (Inspect) Visit Preview Aug 3, 2025 3:09pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the accuracy of the markdown.test.mjs test file by using proper SemVer objects instead of raw version strings for more precise testing.

  • Imports the SemVer class from the semver package
  • Updates test assertions to use SemVer instances instead of raw version strings
  • Changes from partial deep equality to full deep equality assertion
Comments suppressed due to low confidence (1)

src/parsers/tests/markdown.test.mjs:27

  • Changing from partialDeepStrictEqual to deepStrictEqual makes the test more brittle. If the actual results contain additional properties beyond version and isLts, this test will now fail. Consider whether the stricter assertion is necessary or if the partial comparison was intentionally more flexible.
    assert.deepStrictEqual(results, [

@flakey5 flakey5 merged commit e3e87e7 into main Aug 7, 2025
17 checks passed
@flakey5 flakey5 deleted the fix/md-test branch August 7, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants